<!DOCTYPE html>
<html>

<head>
	<title>注单查询</title>
	<meta charset="utf-8">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__STATIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__STATIC__/css/font-awesome.css" rel="stylesheet">
	<link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
	<link href="__STATIC__/css/animate.css" rel="stylesheet">
	<link href="__STATIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="__STATIC__/xinli/css/history.css">
	<style type="text/css">
		.memu>span>a {
			color: yellow;
		}

		.middle-line1-content {
			width: 99%;
			background-color: rgba(182, 171, 171, 0.56);
			font-size: 12px;
			border: 1px solid rgba(128, 128, 128, 0.72);
			border-radius: 5px;
			margin: 0 auto;
			margin-top: 8px;
			padding: 10px 20px
		}

		.middle-line1-content>div {
			margin-top: 3px;
			padding: 6px 0 6px 13px;
			float: left;
			width: 10%;
		}

		.table-or {
			background-color: rgba(219, 81, 4, 0.78);
			color: white;
			font-size: 12px;
			text-align: center;
			width: 20%;
		}

		select {
			padding: 2px;
			padding-bottom: 6px;
			border: 1px solid silver;
			border-radius: 3px;

		}

		.buttons {
			display: inline-block;
		}

		.selectss {
			display: inline-block;
			padding: 0 10px 0 60px;
		}

		input {
			width: 85px;
			padding-left: 7px;
			border: 1px solid rgb(3, 169, 244);
			border-radius: 3px;
		}

		.font-red {
			color: red;
			margin-left: 10%;
		}

		.boton {
			text-align: center;
			width: 100%;
		}

		.boton>button {
			padding: 2px 15px;
		}

		.boton>button:first-child {
			border: 1px solid rgb(3, 169, 244);
			border-radius: 3px;
		}

		.form-size {
			margin: 7px;
			padding: 6px;
		}

		.inp1 {
			width: 120px;
			margin-right: 5px;
		}

		.middle-line1-content>span {
			color: red;
		}

		.form-size>table>thead>tr>th {
			background: rgb(224, 139, 46);
			color: white;
			font-size: 15px;
			border: 1px solid rgb(214, 214, 214);
			text-align: center;
			padding: 2px 4px;
		}

		.form-size>table>tbody>tr>td {
			background: rgb(240, 240, 240);
			color: black;
			font-size: 13px;
			border: 1px solid rgb(214, 214, 214);
			text-align: center;
			padding: 2px 4px;
		}
	</style>
</head>

<body>
	<div>
		<div class="heads">
			<div class="poly">保利</div>
			<div style="clear: both;"></div>

		<div style="position: relative;width: 80%;float: right;">
			<div class="arrow-left"></div>
			<div class="memus" style="height: 30px;">
				<div class="bevel"></div>
				<div style="clear: both;"></div>
		{switch name=":session('usertype')"}
    {case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/director')}">总监</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="2"}
    		{switch name=":session('roots')"}
    		 {case value="0"}
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
				{case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
			{default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
			{/switch}
    {/case}
    {case value="3"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="4"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="5"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="6"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
	{/switch}
			</div>
			<div style="clear: both;"></div>
		

		<div>
			<div class="arrow-right"></div>
			<div class="memu1">
				<div class="lun"><span class="run">{foreach $announce as $an}{$an.content}{/foreach}</span>
				</div>
			</div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>
		</div>

		<div class="middle">
			<div class="middle-line1-content">
				<span style="color: black;">注单查询</span>
				<span style="margin-left: 30px;cursor: pointer;" onclick="del()">查看删除记录</span>
				<span style="cursor: pointer;margin-left: 5px;">所有修改注单</span>
				<span style="float: right;">
					<a href="{:url('admin/home/notecheck')}">返回上一页</a>
				</span>
			</div>
			<div style="clear: both;"></div>
			<div class="middle-form-content">
				<form method="post" class="form-size">
					<table style="width: 100%;    border: 2px solid rgb(214,214,214);">
						<thead>
							<tr>
								<th>期数</th>
								<th>单号/时间</th>
								<th>账号</th>
								<th>名称</th>
								<th>退水</th>
								<th>盘类</th>
								<th>下注内容</th>
								<th>赔率</th>
								<th>下注金额</th>
								<th>退水</th>
								<th>结果</th>
								<th>修改</th>
								<th>删除</th>
							</tr>
						</thead>
						<tbody>
						{foreach $zongbiao as $z}
							<tr>
								<td>{$z.datatime}</td>
								<td>
									<span style="color: green;">{$z.times}{$z.id}</span>
									<span>{:date("H:i:s",$z.times)}</span>
								</td>
								<td>{$z.username}</td>
								<td>{$z.name}</td>
								<td>
									<span style="color: green">{$z.water}</span>
								</td>
								<td>{switch name=$z.andicap }{case value="1"}A{/case}
    								{case value="2"}B{/case}{case value="3"}C{/case}{case value="4"}D{/case}
    								{default /}A{/switch}
    								盘</td>
								<td>
									<span>{$z.conter}</span>
								</td>
								<td>
									{$z.price}
								</td>
								<td>
									{$z.rate}
								</td>
								<td>{$z.water}</td>
								<td>{$z.res}</td>
								<td>
									<span>修改</span>
								</td>
								<td>
									<input type="checkbox" name="del-id" data-id="{$z.id}">
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
				</form>
			</div>
		</div>
	</div>
	<!-- 全局js -->
	<script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
	<script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>
	<!-- 自定义JS -->
	<script src="__STATIC__/js/admin/controtiren.js"></script>
	<script type="text/javascript">
		//公告轮播
		$(function () {
			var price = 0
			//轮播
			var left = 0;

			function move() {
				left--
				if (left < -$(".run").width()) {
					left = 0
				}
				$(".run").css("left", left + "px")
			}
			setInterval(move, 60)
		})

		$(function () {
			var timestamp = Date.parse(new Date());
			$("input[name=stime]").attr('value', fmtDate(timestamp));
			$("input[name=etime]").attr('value', fmtDate(timestamp));
		})
		var item1 = [];
		function del(){
			$(':checkbox').each(function(){
				  if ($(this).is(":checked")) {
				    var id = $(this).attr('data-id');
				    item1.push(id);
				  }
			});
			item1 = JSON.stringify(item1)
			$.post('{:url("admin/interfaces/delorder")}',{id:item1},function(res){
				console.log(res);
				if(res==1){
					alert('删除成功');
				}else{
					alert('删除失败');
				}
			})
		}
		function fmtDate(obj) {
			var date = new Date(obj);
			var y = 1900 + date.getYear();
			var m = "0" + (date.getMonth() + 1);
			var d = "0" + date.getDate();
			return y + "-" + m.substring(m.length - 2, m.length) + "-" + d.substring(d.length - 2, d.length);
		}

		function fmtDate(obj) {
			var date = new Date(obj);
			var y = 1900 + date.getYear();
			var m = "0" + (date.getMonth() + 1);
			var d = "0" + date.getDate();
			return y + "-" + m.substring(m.length - 2, m.length) + "-" + d.substring(d.length - 2, d.length);
		}
	</script>


</body>

</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>